import request from '@/utils/request'

// 查询毕业类型信息列表
export function listGraduationType(query) {
  return request({
    url: '/chengkao/graduationType/list',
    method: 'get',
    params: query
  })
}

// 查询毕业类型信息详细
export function getGraduationType(id) {
  return request({
    url: '/chengkao/graduationType/' + id,
    method: 'get'
  })
}

// 新增毕业类型信息
export function addGraduationType(data) {
  return request({
    url: '/chengkao/graduationType',
    method: 'post',
    data: data
  })
}

// 修改毕业类型信息
export function updateGraduationType(data) {
  return request({
    url: '/chengkao/graduationType',
    method: 'put',
    data: data
  })
}

// 删除毕业类型信息
export function delGraduationType(id) {
  return request({
    url: '/chengkao/graduationType/' + id,
    method: 'delete'
  })
}
